import React,{ Component } from 'react'

export default class ADoor extends Component {
    state = {
      }

  render (){
      const { number } = this.props
      return (<div>
                {number? `我有${number}扇门`:`我有一扇门`}
              </div>)
  }
}

